<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Duye SDK User Wizard: duye::ThreadTask Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Duye SDK User Wizard
   &#160;<span id="projectnumber">V1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>duye</b></li><li class="navelem"><a class="el" href="classduye_1_1_thread_task.html">ThreadTask</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classduye_1_1_thread_task-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">duye::ThreadTask Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>thread base class, be inherited by user  
 <a href="classduye_1_1_thread_task.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="duye__thread_8h_source.html">duye_thread.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for duye::ThreadTask:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classduye_1_1_thread_task.png" usemap="#duye::ThreadTask_map" alt=""/>
  <map id="duye::ThreadTask_map" name="duye::ThreadTask_map">
<area href="classduye_1_1_runnable.html" title="be inherited ty user" alt="duye::Runnable" shape="rect" coords="137,0,264,24"/>
<area href="classduye_1_1_hcn_server.html" alt="duye::HcnServer" shape="rect" coords="0,112,127,136"/>
<area href="classduye_1_1_thread_worker.html" title="thread worker, class ThreadPool depend on" alt="duye::ThreadWorker" shape="rect" coords="137,112,264,136"/>
<area href="classduye_1_1_timer_server.html" title="string extend function" alt="duye::TimerServer" shape="rect" coords="274,112,401,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4e70c7dd2d345daf5b175d70ddd897a6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_thread_task.html#a4e70c7dd2d345daf5b175d70ddd897a6">ThreadTask</a> (const bool autoRel=true)</td></tr>
<tr class="memdesc:a4e70c7dd2d345daf5b175d70ddd897a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructor  [in] autoRel : whether is detached with main thread, default is detached  <a href="#a4e70c7dd2d345daf5b175d70ddd897a6"></a><br/></td></tr>
<tr class="separator:a4e70c7dd2d345daf5b175d70ddd897a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae386cc1b68d6cdeea15a05b8ecd70785"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_thread_task.html#ae386cc1b68d6cdeea15a05b8ecd70785">startTask</a> (const bool autoRel=true)</td></tr>
<tr class="memdesc:ae386cc1b68d6cdeea15a05b8ecd70785"><td class="mdescLeft">&#160;</td><td class="mdescRight">startup thread  <a href="#ae386cc1b68d6cdeea15a05b8ecd70785"></a><br/></td></tr>
<tr class="separator:ae386cc1b68d6cdeea15a05b8ecd70785"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e46695b3a1706db81181d886751cc4f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_thread_task.html#a6e46695b3a1706db81181d886751cc4f">join</a> ()</td></tr>
<tr class="memdesc:a6e46695b3a1706db81181d886751cc4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">join  <a href="#a6e46695b3a1706db81181d886751cc4f"></a><br/></td></tr>
<tr class="separator:a6e46695b3a1706db81181d886751cc4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1876d8ffd4edce0851b88f52b7451377"><td class="memItemLeft" align="right" valign="top">uint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_thread_task.html#a1876d8ffd4edce0851b88f52b7451377">threadId</a> () const </td></tr>
<tr class="memdesc:a1876d8ffd4edce0851b88f52b7451377"><td class="mdescLeft">&#160;</td><td class="mdescRight">get thread ID  <a href="#a1876d8ffd4edce0851b88f52b7451377"></a><br/></td></tr>
<tr class="separator:a1876d8ffd4edce0851b88f52b7451377"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf1781862945529c7008a679b7e07f2b"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classduye_1_1_thread_task.html#acf1781862945529c7008a679b7e07f2b">run</a> ()=0</td></tr>
<tr class="memdesc:acf1781862945529c7008a679b7e07f2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">thread entry function  <a href="#acf1781862945529c7008a679b7e07f2b"></a><br/></td></tr>
<tr class="separator:acf1781862945529c7008a679b7e07f2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>thread base class, be inherited by user </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4e70c7dd2d345daf5b175d70ddd897a6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">duye::ThreadTask::ThreadTask </td>
          <td>(</td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>autoRel</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>constructor  [in] autoRel : whether is detached with main thread, default is detached </p>
<dl class="section note"><dt>Note</dt><dd></dd></dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a6e46695b3a1706db81181d886751cc4f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool duye::ThreadTask::join </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>join </p>
<dl class="section return"><dt>Returns</dt><dd>true/false </dd></dl>

</div>
</div>
<a class="anchor" id="acf1781862945529c7008a679b7e07f2b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool duye::ThreadTask::run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>thread entry function </p>
<dl class="section return"><dt>Returns</dt><dd>true/false </dd></dl>
<dl class="section note"><dt>Note</dt><dd></dd></dl>

<p>Implements <a class="el" href="classduye_1_1_runnable.html#a42e2ba84c4128bda197a64f253c4bbcd">duye::Runnable</a>.</p>

<p>Implemented in <a class="el" href="classduye_1_1_hcn_server.html#a5173895f740fdb637bf6dfb779ce2bba">duye::HcnServer</a>.</p>

</div>
</div>
<a class="anchor" id="ae386cc1b68d6cdeea15a05b8ecd70785"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool duye::ThreadTask::startTask </td>
          <td>(</td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>autoRel</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>startup thread </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">autoRel</td><td>: whether is detached from main thread, default is detached </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true/false </dd></dl>
<dl class="section note"><dt>Note</dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a1876d8ffd4edce0851b88f52b7451377"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64 duye::ThreadTask::threadId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>get thread ID </p>
<dl class="section return"><dt>Returns</dt><dd>thread ID </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Z:/duye/src/duyebase/system/<a class="el" href="duye__thread_8h_source.html">duye_thread.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Feb 27 2017 15:19:21 for Duye SDK User Wizard by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>
